<template>

  <el-tree
      style="max-width: 600px"
      :data="dataAdress"
      :props="defaultProps"
  />
  <el-tree style="max-width: 600px" :props="props" :load="loadNode" lazy />
</template>

<script setup name="Region">
import { treeSelect,listRegion, getRegion, delRegion, addRegion, updateRegion } from "@/api/user/region";


const { proxy } = getCurrentInstance();

const regionList = ref([]);
const open = ref(false);
const loading = ref(true);
const showSearch = ref(true);
const ids = ref([]);
const single = ref(true);
const multiple = ref(true);
const total = ref(0);
const title = ref("");

const defaultProps = {
  children: 'children',
  label: 'name',
}
const dataAdress = ref([

])

onMounted(()=>initData())

const initData =async ()=>{
 const {data} =  await treeSelect()
  dataAdress.value= data;

}
//



</script>
